var $ = require('jquery')
var a=233;
console.log(a);
function getinfo(){
    return $.getJSON("http://stu.ityxb.com/back/bxg_anon/user/loginInfo",function(json){
        alert("欢迎： "+info.responseJSON.resultObject.nickname);
    });
}
var info=getinfo();
setTimeout(function(){alert(info.responseJSON.resultObject.nickname);},2000);
alert(info.responseJSON.resultObject);
function getinfo(){
    var info=$.getJSON("http://stu.ityxb.com/back/bxg_anon/user/loginInfo",function(json){
        alert("欢迎： "+info.responseJSON.resultObject.nickname);
    });
    var preview_count;
    $.getJSON("http://stu.ityxb.com/back/bxg/user/getThreeRedPoints",function(json){
        preview_count=json.responseJSON.resultObject.preview;
    })
}
getinfo();
